function getClientInfo() {
    return {
      "name" : "选中轨道RGB变色",
      "category" : "AKD",
      "author" : "akd",
      "versionNumber" : 1,
      "minEditorVersion" : 65540
    };
  }
  function setInterval(t, callback) {
    callback();
    SV.setTimeout(t, setInterval.bind(null , t, callback));
  }
  function RGB(){
    var RBG=["ff00ffff","ff10ffe0","ff20ffd0","ff30ffc0","ff40ffb0","ff50ffa0","ff60ff90","ff70ff80","ff80ff70","ff90ff60","ffa0ff50","ffb0ff40","ffc0ff30","ffd0ff20","ffe0ff10","ffffff00","ffffe010","ffffd020","ffffc030","ffffb040","ffffa050","ffff9060","ffff8070","ffff7080","ffff6090","ffff50a0","ffff40b0","ffff30c0","ffff20d0","ffff10e0","ffff00ff","ffe010ff","ffd020ff","ffc030ff","ffb040ff","ffa050ff","ff9060ff","ff8070ff","ff7080ff","ff6090ff","ff50a0ff","ff40b0ff","ff30c0ff","ff20d0ff","ff10e0ff"];
    var track =SV.getMainEditor().getCurrentTrack();
    // var track=SV.getProject().getTrack(1)
    var i=RBG.indexOf(track.getDisplayColor());
    if(i==-1){i=0}
    i++;
    if(i>=45){i=0}
    track.setDisplayColor(RBG[i]);
  }
  function main() {
    var track =SV.getMainEditor().getCurrentTrack()
    track.getGroupReference(0).getTarget().setName(0)
    setInterval(50, RGB);
  }